package com.kexun.common.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class Commons {
    public static String getRandom() {
        SimpleDateFormat simpleDateFormat;
        simpleDateFormat = new SimpleDateFormat("yyyyMMdd");
        String date = simpleDateFormat.format(new Date());
        Random random = new Random();
        int rannum = (int) (random.nextDouble() * (99999 - 10000 + 1)) + 10000;
        String rand = date + rannum;
        return rand;
    }
}
